package models

import "gorm.io/gorm"

type Product struct {
	gorm.Model
	Name    string `gorm:"type:varchar(50)" json:"name"`
	Content string `gorm:"type:text" json:"content"`
	Author  string `gorm:"type:varchar(50)" json:"author"`
}

type ProductCount struct {
	gorm.Model
	Pid int `gorm:"type:int"`
	Uid int `gorm:"type:int"`
}

//分类

type Branch struct {
	gorm.Model
	BranchName string `gorm:"type:varchar(50)" json:"branch_name"`
}

type User struct {
	gorm.Model
	Username string `gorm:"type:varchar(50)" json:"username"`
	Password string `gorm:"type:varchar(255)" json:"password"`
}
